<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<c:url var="ico_reports" value="images/icons/reports_icon.png" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><fmt:message key="appTitle" /></title>
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/base.css" />' />
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/charte.css" />' />
</head>
<body>
	<div id="global">
		<jsp:include page="header.jsp" />
		<jsp:include page="menu.jsp" />
		<div id="contenu">
			<h2>
				<img src="${ico_reports }" /> Rapports de
				sondage
			</h2>
			<hr>
			<div id="gp">
				<table>
					<tr>
						<th width="20%">Sondage</th>
						<th>consulter le rapport<br />graphique</th>
						<th>consulter le rapport<br />complet</th>
					</tr>
					<c:forEach var="survey" items="${surveys}">
						<tr>
							<td width="20%"><c:out value="${survey.survey.title}" />
							</td>
							<td><c:if test="${survey.canSeeGraphicalReport}">
									<a
										href='<c:url value="/graphical_report.htm" />?id=<c:out value="${survey.survey.id}"/>'><img
										src='<c:url value="/images/icons/rapport.png" />' />
									</a>
								</c:if>
							</td>
							<td><c:if test="${survey.canSeeFullReport}">
									<a
										href='<c:url value="/full_report.htm" />?id=<c:out value="${survey.survey.id}"/>'><img
										src='<c:url value="/images/icons/rapport.png" />' />
									</a>
									<a
										href='<c:url value="/full_csv_report.htm" />?id=<c:out value="${survey.survey.id}"/>'><img
										src='<c:url value="/images/icons/csv.png" />' />
									</a>
								</c:if>
							</td>
						</tr>
					</c:forEach>
				</table>
			</div>
		</div>
		<jsp:include page="footer.jsp" />
	</div>
</body>
</html>
